package com.yfg.wap.flight.dao;

import java.util.List;

import com.yfg.wap.flight.common.DBhelper;
import com.yfg.wap.flight.entity.base.RegionData;

public class GetRegionData {
	
	public List<RegionData> getRegionDatas(int parentId, int regionType){
		DBhelper dBhelper = new DBhelper();
		dBhelper.setBeanClass(RegionData.class);
		List<RegionData> regionDatas = (List<RegionData>)dBhelper.queryRecords("SELECT region_id,parent_id,region_name,region_type,region_zip,region_area,region_areacode FROM Region_Data WITH(nolock) WHERE parent_id=? and region_type=?",new Object[]{parentId,regionType});
		return regionDatas;
	}
}
